home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  887 b   |  45 lines  |  [TEXT/MMCC]

  1. /* signal.h standard header */
  2. #ifndef _SIGNAL
  3. #define _SIGNAL
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10. #endif
  11.  
  12.         /* type definitions */
  13. typedef int sig_atomic_t;
  14. typedef void _Sigfun(int);
  15.         /* signal codes */
  16. #define SIGABRT    _SIGABRT
  17. #define SIGINT    2
  18. #define SIGILL    4
  19. #define SIGFPE    8
  20. #define SIGSEGV    11
  21. #define SIGTERM    15
  22. #define _NSIG    _SIGMAX    /* one more than last code */
  23.         /* signal return values */
  24. #define SIG_DFL    ((_Sigfun *)0)
  25. #define SIG_ERR    ((_Sigfun *)-1)
  26. #define SIG_IGN    ((_Sigfun *)1)
  27. _EXTERN_C        /* low-level functions */
  28. _Sigfun *signal(int, _Sigfun *);
  29. _END_EXTERN_C
  30. _C_LIB_DECL        /* declarations */
  31. int raise(int);
  32. _END_C_LIB_DECL
  33.  
  34. #if __MWERKS__
  35. #pragma options align=reset
  36. #endif
  37.  
  38. #endif
  39.  
  40. /*
  41.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  42.  * Consult your license regarding permissions and restrictions.
  43.  */
  44.  
  45.